package cn.seecoder.courselearning.vo.course.test;

import cn.seecoder.courselearning.po.course.test.CourseTestPO;
import cn.seecoder.courselearning.po.course.test.CourseUserTestPO;
import lombok.Data;

@Data
public class CourseUserTestVO {
    // 用户id
    private int userId;
    // 测试id
    private int testId;
    // 用户测试的分数
    private int score;

    public CourseUserTestVO() {
    }

    public CourseUserTestVO(int userId, int testId, int score) {
        this.userId = userId;
        this.testId = testId;
        this.score = score;
    }

    public CourseUserTestVO(CourseUserTestPO courseUserTestPO) {
        this.userId = courseUserTestPO.getUserId();
        this.testId = courseUserTestPO.getTestId();
        this.score = courseUserTestPO.getScore();
    }
}
